package com.xiaoqianxin.api;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * api启动类
 */
@SpringBootApplication
@EntityScan(basePackages = {"com.xiaoqianxin.entity"})
public class ApiApp extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(ApiApp.class);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(ApiApp.class);
    }
}
